<div class="wide form">
<?php 
	/*$form=$this->beginWidget('CActiveForm', array(
	'id' => 'form',
	//'action'=>Yii::app()->createUrl($this->route),
	//'enableAjaxValidation'=>true,
	'method'=>'get',
	'stateful'=>true) ,
	array('enctype'=>'multipart/form-data'),
);*/
 ?>
<?php
$form = $this->beginWidget('CActiveForm', array(
  'id'=>'formSearchByUser', 
   'action'=>Yii::app()->createUrl($this->route),
  'enableAjaxValidation'=>true, 
  'stateful'=>true,
  'htmlOptions'=>array('enctype' => 'multipart/form-data'),
  'method' => 'get' ,
));
?>
	<div id="condition">
		<div class="row">
			<?php echo $form->label($model,'job_group_id'); ?>
			<?php echo $form->dropDownList($model,'job_group_id', CHtml::listData(JobGroup::model()->findAll(), 'id', 'name') ); ?>		
		</div>
	</div>
	<div id="statisticsByJobtype">
		<div class="buttons group">
			<?php echo CHtml::submitButton('Xem trực tiếp' , array('submit'=>array('job/statisticsJobGroupSubmit'))); ?>

			<?php echo CHtml::submitButton('Xuất excel' , array('submit'=>array('job/statisticsJobGroupExcel') , 'params'=>array('redirect'=>true))); ?>		
		</div>
	</div>
	<div style="clear: both;"></div>
<?php $this->endWidget(); ?>
</div><!-- search-form -->